const setBackMiniParam = (backMiniParam) => {
	if (!(typeof param === 'string')) {
		backMiniParam = JSON.parse(backMiniParam)
	}
	uni.setStorageSync('backMiniParam', backMiniParam)
}


const getBackMiniParam = () => {
	return uni.getStorageSync('backMiniParam')
}

const initBackMiniParam = (option) => {
	if (option.backMiniParam) {
		setBackMiniParam(option.backMiniParam)
	}
}

export default {
	initBackMiniParam,
	getBackMiniParam,
}